Various and sundry notes
Jquery document.ready
$(document).ready(function() {
// Handler for .ready() called.
});
Clearing Caches
To clear IE cache and get the new code to run - [cntrl] [shift] [delete] with the browser open and uncheck temporary internet files.
Also F12 - Dev Tools - clear cache ([cntrl]+D) (in dev tools window)
In Firefox : Tool - Clear Recent History
[
ScaffoldColumn(false)] works for standard MVC scaffolding but not for NuGet scaffolding
To uninstall package manager (to upgrade) open VS as dmin and go to tools - Extension Manager
To install NuGet go to package manager and select online gallery. Or better still google it and find the online site for the latest bits.
The member ship provider can be set up with this cmd line command
aspnet_regsql -S (local) -E -A m
-S specifies the server, which is
(local) in this example.
-E specifies to use Windows authentication to connect to SQL Server.
-
A m specifies to add only the membership feature. For simple authentication against a SQL Server user store, only the membership feature is required.
For a complete list of the commands, run
Aspnet_regsql /?.
ATTENTION !!!! the order that you add objects to other objects and when you do a db.saveChanges is critical to not creating multiple objects (eg user)
Javascript Objects
Declare objects
qRules =
new Array();
qRule =
new Object();
Build out objects and add to array
qRule.field = "description";
qRule.op = "cn"
qRule.data = $("#searchDescription").val();
qRules[qRules.length] = qRule;
// add the rules to the master object
groupOp = new Object();
groupOp.groupOp = "AND";
groupOp.rules = qRules;
// serialize (Crockford's)
JobsList.filters = $.toJSON(groupOp);